package com.atguigu.gmall.all.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author gsy
 * @date 2021年09月07日19:46
 * Description
 */
@Controller
public class LoginConroller {

    //转发去登录页面 'http://passport.gmall.com/login.html?originUrl='+ encodeURIComponent(window.location.href)
    @GetMapping("/login.html")
    public String login(String originUrl, Model model){
        model.addAttribute("originUrl",originUrl);
        return "login";
    }
}
